package com.heart.servicefeign;

import org.springframework.stereotype.Service;

/**
 * FeignService的断路由fallback服务
 *
 * @author: heart
 * @date: 2018/6/15
 */
@Service
public class FeignErrorService implements FeignService {

    @Override
    public String sayHelloFromEurekaClient(String name, String method) {
        return "sorry " + name + ",there is some errors!";
    }

    @Override
    public String sayHelloFromEurekaClient(String name) {
        return "sorry " + name + ",there is some errors!";
    }

}
